<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 CalenderUI();
 link_js(array('jquery.fixedheader','bootstrap-typeahead'),'asset/js/');
 ?>
<!--<div class='container'>-->
     <div class="tabbable"> <!-- Only required for left/right tabs -->
	<?=$tab_header;?>
       <div class="tab-content" style=''>
            <div class="tab-pane active" id="table1">
			<br>
			<? echo "<form id='frm1' name='frm1' method='post' action=''>";
			 echo tabel('tabel','80%').
			 	  tr().
					  td('Tanggal','20%',false,'box_bs','right').td('','5px').
					  td("<input type='text' id='tgl_trans' name='tgl_trans'  class='span2' value='".date('d/m/Y')."'").
					  td('','2%',false,'').
					  td("Saldo Pinjaman",'10%',false,'box_bs','right').td('','5px').
					  td("<input type='text' id='saldo_pinjaman' name='saldo_pinjaman' class='span2 angka' value='0'").
				  _tr().
			 	  tr().
					  td('No. Anggota','10%',false,'box_bs','right').td('','5px').
					  td("<input type='text' id='id_member' name='id_member'  class='span2' value=''").
					  td('','2%',false,'').
					  td("Total Angsuran",'10%',false,'box_bs','right').td('','5px').
					  td("<input type='text' id='total_angsuran' name='total_angsuran' class='span2 angka' value='0'").
				  _tr().
			 	  tr().
					  td('Nama Anggota','10%',false,'box_bs','right').td('','5px').
					  td("<input type='text' id='nm_member' name='nm_member'  class='span4' value=''").
					  td('','2%',false,'').
					  td("Tgl Pinjaman",'10%',false,'box_bs','right').td('','5px').
					  td("<input type='text' id='tgl_pinjaman' name='tgl_pinjaman' class='span2' value=''").
				  _tr().
				 
			 	  tr().
					  td('Jenis Pinjaman','10%',false,'box_bs','right').td('','5px').
					  td("<select id='id_simpanan' name='id_simpanan'  class='span3'></select>").
					  td('','2%',false,'').
					  td("Tgl Lunas",'10%',false,'box_bs','right').td('','5px').
					  td("<input type='text' id='tgl_lunas' name='tgl_lunas' class='span2' value=''").
				  _tr().
				 _tabel();
			?>
			<hr>
			<?
			echo tabel('table table-hover','80%\' border=\'0').
				 tr(' alert alert-info',true,'center').
				 	td('No.','2%',true,'box_lbr ','center').
					td('Uraian','35%',true,'box_lbr ','center').
					td('Jumlah','10%',true,'box_lbr ','center').
					td('Kode Akun','25%',true,'box_lbr ','center').
					td('Status','8%',true,'box_lbr ','center').
				_tr();
				for($i=1;$i<=4;$i++)
				{
				echo tr('grid').
						td($i,'',false,'span1','center').
						td("<input type='text' id='uraian$i' name='uraian$i' value='' class='w95'/>").
						td("<input type='text' id='jml$i' name='jml1' value='' class='w95 angka'/>").
						td("<input type='text' id='kd_akun$i' name='uraian$i' value='' class='w95'/>").
						td("<select id='stat$i' name='uraian$i' class='s90'/><option value='D'>Debet</option><option value='K'>Kredit</option></select>").
					_tr();
				}
			echo _tabel();
			
			?><hr>
			<?
				echo tabel('table','80%').tr().td("<button type='button' id='Simpan' class='btn'><i class='cus-disk'></i>Simpan</button>&nbsp;<button type='reset' id='batal' class='btn'><i class='cus-cancel'></i> Cancel</button>",'',false,'','right')._tr()._tabel();
			echo "</form>";
			?>
			
			
			</div>
       </div>
		<input type='hidden' id='row_aktif' value='<?=empty($_GET['ot'])?'n':$_GET['ot'];?>'/>
		<input type='hidden' id='rows' value='<?=base64_decode($this->session->userdata('menus'));?>'/>
    </div>
<!--</div>-->

<script language='javascript'>
$(document).ready(function(e) {
	$('div.tab-content').css('height',(screen.availHeight-275));
})

</script>
